Modifying index file