Made changes in the TickTock method to work correctly