add an Enviroment variable to control the size of the batch