Making trace intersect checker