Implemented full batch support.

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