Added index-creation to mirror script.