Removed sleep

Removed thread.sleep