Revise the timer to suport pause and resume.