Modify index file