Batching process

Refers to #3