Add function to find intersection.