Creating an index file.