Fix a timer design, close #30.