Use method 'upto' instead of ranges.