How to insert batches