Removed unnecessary calls to sleep