Add intersections function and friends.