Building out the index file