Why does adding an 'if' effect my state machine?

Oh geez. Yes, I see what happened there now. It still puts that 0 or 1 as intended and then sticks the timing value right after it. Silly oversight that I'm embarassed to have posted. Darn!