Switched to bailing out early instead of computing all intersections.