Updating batch statement implementation.
Merge branch 'feature/improvements' of https://github.com/newzly/phantom into feature/improvements