Added ability to use batch inserter to speed up creation of data.