Batching

Closes #282
Can probably copy out the old handle manager for this.