Removed use of ranges.
Replaced last use of a range.