MOdified for Batch Process.