Add methods to create and save batches.