Seems to me like you're referring to a pacemaker, which controls the speed and rhythm of the heart.
9.5m questions
12.2m answers