Moved the sleep from server to client'