The present invention provides advancements in the art of cardiac pacemakers. The invention provides a pacemaker system that comprises at least one pacemaker and that is, to a large extent, self-controlled, allows for long-term implantation in a patient, and minimizes current inconveniences and problems associated with battery life. The invention further includes a mechanism in which at least two pacemakers are implanted in a patient, and in which the pacemakers communicate with each other at the time of a given pacing or respiratory event, without any required external input, and adjust pacing parameters to respond to the patient's need for blood flow. The invention further provides a design for a pacemaker in which the pacemaker electrode is connected to the pacemaker body by a lead that is configured to allow the pacemaker to lie parallel to the epicardial surface and to reduce stress on the pacemaker and heart tissue.