Finalized the server implementation.