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