stimulating the heart muscle to contract. Pacemakers are also sometimes used temporarily when someone is recovering from a heart attack or heart surgery, but in this case only the wires are ...