Client implementation for the client-server communication