Switched to boost::this_thread::sleep