Making an index file