Batching

Closes #282
??