Added batch processing