Removed unused sleep.