Refactoring resetTimer and sleep method. #3