Improved data accumulation in CommandResult