Changed NameServer to use usleep instead of C++11 style sleeping