Added the RebuildIndexes proc