Updated the code to make use of the Timer class