Removed the sleep() within the API