Improved my timer by employing helper method