Added much more functionality to server.