A method of programming a stimulation device is disclosed. The stimulation device comprises a housing having a length ranging from at least 6 mm to no more than 10 cm and has a diameter of greater than 6 mm but less than 25 mm. The method comprises a. generating pH data; b. transmitting the pH data to a processor housed within a computing device external to a patient and storing the pH data within the computing device; c. obtaining information relating to gastroesophageal reflux disease symptoms; d. analyzing the pH data in relation to the information to generate programming parameters; and e. programming the stimulation device using the programming parameters. The programming step comprises establishing fixed start times for initiating the electrical stimulation and fixed end times for terminating the electrical stimulation