Adds a sleep(10) to thread loop to avoid quick thrashing.