Replaced the broken timer system

The new system can vary heart rate with the SetHeartRate function