Batch code