Updating the index file