Pacemakers are small devices operated by a battery and are recommended to patients who require their heart to beat with a regular rhythm. Once the device is inserted in your body, the wires are connected to the heart with the help of tiny wires, and regular, timely impulses flow through the wires to the heart enabling it to beat at regular intervals. For patients who experience irregular or slow heartbeat, the device replaces the functions of the natural pacemaker in the body. One can also opt for temporary pacemakers that are not surgically implanted in the body – once the regular heartbeat is established, the device is removed.