Added delete batches functionality.