An implantable medical device for treating breathing disorders such as central sleep apnea wherein stimulation is provided to the phrenic never through a transvenous lead system with the stimulation beginning after inspiration to extend the duration of a breath and to hold the diaphragm in a contracted condition.