Added functionality to test multiple ranges.