Implemented full batch support.
Merge pull request #14 from mcollina/batch-support

Implemented normal batch support.