added variables for the timing with millis() (LB)