Made the server multithreaded.