Factored out data accumulator.