A pacemaker is a small battery-operated device that delivers electrical impulses to the cardiac muscles in order to keep the heart beating normally. Modern pacemakers can be externally programmed allowing pacing modes to be optimized for individual patients. Pacemakers generally cost in the region of USD$23,000.