Creating the index file.