How to use millis instead of delay.