Adding batch processing to the ill correction code