Modifies index file