We have analyzed in detail the neuronal network that generates heartbeat in the leech. Reciprocally inhibitory pairs of heart interneurons form oscillators that pace the heartbeat rhythm. Other heart interneurons coordinate these oscillators. These coordinating interneurons, along with the oscillators interneurons, form an eight-cell timing oscillator network for heartbeat. Still other interneurons, along with the oscillator interneurons, inhibit heart motor neurons, sculpting their activity into rhythmic bursts. Critical switch interneurons interface between the oscillator interneurons and the other premotor interneurons to produce two alternating coordination states of the motor neurons. The periods of the oscillator interneurons are modulated by endogenous RFamide neuropeptides. We have explored the ionic currents and graded and spike-mediated synaptic transmission that promote oscillation in the oscillator interneurons and have incorporated these data into a conductance-based computer model. This model has been of considerable predictive value and has led to new insights into how reciprocally inhibitory neurons produce oscillation. We are now in a strong position to expand this model upward, to encompass the entire heartbeat network, horizontally, to elucidate the mechanisms of FMRFamide modulation, and downward, to incorporate cellular morphology. By studying the mechanisms of motor pattern formation in the leech, using modeling studies in conjunction with parallel physiological experiments, we can contribute to a deeper understanding of how rhythmic motor acts are generated, coordinated, modulated, and reconfigured at the level of networks, cells, ionic currents, and synapses.