Moved this section further down so that the last millis value emitted is 0. In the original code the last value emitted is the value right before the countdown reaches 0, i e with an interval of 1000 the last value emitted is 1000.