Loop for indexing appears to be working pretty spiffy