Added initial code for server.