At some point, I'd like to switch this to using the new method which you wrote. We both spent hours discussing this rangesForInterval method and it's not really very clear.