Added batch processing to speed up report processing.