Implemented client and additional rpc functions.