Added in batches functionality