Added network communication between server and client.