Setting up the index file