Added reset parameter for timer