Another try for range calculation.