Removed a thread sleep code that caused an error on Windows.