A client is admitted for a coronary artery bypass graft. The client states that the preoperative teaching materials contain information about pacemaker wires being inserted during surgery as a precautionary measure. The client asks, "What is the purpose of the pacemaker?