Function rangeDS added.