Move printing to RPC calls for convenience.