Edit the index file