You could place this loop in the function for loading a new question. Essentially, you just have to check for the value of Time Remaining. When it equals 0, disable the timer. To reset the timer, you could update the value of Time Remaining and fire the timer again.