Implemented normal batch support.

This implement the support for the normal batch mode.

Closes #13.