Moved from range to xrange.