Creating an RPC client