In some rare cases, these pacemaker cells don't work properly, and to fix this, doctors can implant an artificial pacemaker which is a small device that we place just under the skin above the heart and as a wire that can carry electrical current down to the heart, telling it to contract regularly.