Switched from busy wait in server thread to sleep.