Improved the RENSIntersectionRange() function.