Initial working version of the server.