Added code for the timer to run