Diaphragm pacing (and even earlier as electrophrenic respiration) is the rhythmic application of electrical impulses to the diaphragm to provide artificial ventilatory support for respiratory failure or sleep apnea. Historically, this has been accomplished through the electrical stimulation of a phrenic nerve by an implanted receiver/electrode, though today an alternative option of attaching percutaneous wires to the diaphragm exists.