Changed the way intersections are merged