Implemented JSON RPC calls