add batch processing.