Dynamically add tasks to batches, process batches after a time.