Server is now threaded (needs more testing, but it appears to work).