loopDelay added