Added support for ranges.