Finished up the server code.