Minor changes to the server to fix communication with the client.