Added some idle-time to the main loop to prevent it from killing the performance of the host