Perform in batches