Most of the time, you use millis() to replace delay(). Using delay() together will mess up using millis() as timing.