Use range_type instead of range.