Changed api for finding intersections