Refactor processing logic (in batches) and improve summary report