Added a reset timer function