Added sleepTime var