Updated transformAndLoad script to also do indexing when done loading.