Improved the server example.