RPC::doCommand is now fully generic.