In this procedure, an impulse generator (called a pacemaker) is implanted in the chest to regulate the rhythm of the heart.