* Added debug output to endIndexing.