Basic client server implementation.