Reads from the server.