The heart contracts rhythmically due to electrical impulses generated by specialized pacemaker cells. There are two types of cardiac muscle cells: contractile cells that pump blood and pacemaker cells that initiate and conduct electrical impulses. The impulse conducting system consists of the sinoatrial node, atrioventricular node, bundle of His, and Purkinje fibers. An action potential occurs when the membrane potential changes from resting potential (-90 mV) to depolarized (0 mV) and back again due to the movement of ions through membrane channels. Pacemaker cells spontaneously depolarize to initiate each heartbeat.