Part of rpc implemented.