Removed thread sleep