State variables and millis help.

I like to use currentMillis for a couple of reasons.

It only requires one call to get the value (hopefully reducing program run time).

It allows several tests to be done against the same value.

...R