Refactored to single reset timer function with parameter
Simplified resetTimer
Refactor into single getTimer