Fixed time.sleep() call