AVISIMPL-337 Statistics for batch: First version ready.