Further modified and removed php sleep calls