Work on communication between server and client.