Added exception
Changed path for range.csv to variable