changed restartDelay from 1000 to 3000