Use Utils.sleep to sleep the main thread