The rhythmic action of the heart is controlled by an electrical pacemaker, the sinus node. This is located in the wall of the right atrium. From there the electrical stimulus spreads via a conduction system over the entire heart. The electrical activity can be depicted by means of an electrocardiogram (ECG). The action of the heart is divided into a contraction phase or systole in which first the muscles of the atria contract to push the blood into the ventricles, then the muscles of both ventricles contract and expel the blood out into the pulmonary and systemic circulation. This is followed by a relaxation phase or diastole, during which the returning blood flows passively into the atria.