This works because the timer runs even when the project is stopped so when it's running, timer=0 when it's not, the timer runs. With the when timer>.1 the project restarts as soon as the timer is.1