added variable for sleep() - initiate it on the spawn instances