Added the timer to if statement

No change to timer issue