Implement doHeartBeat