Rework the format of the index files.