Removed `sleep` from thread