Update for running many batches