Completed the server/client classes for RPC.