More work on integralRects.