Added some helper methods for ranges.