Implemented the client method.