Added batch parameter

batch parameter is intended to use in parallel running