More rpc functions and added "interfaces"