Nitpick: let's just use a `break` statement to break out of the loop, rather than fiddling with the timer.