Bill Stanbrook #1 Another thing to remember is to set the value of 'oldtime' to the current 'MilliSecs()' time both before starting your main loop, and also after returning from a pause.