< changed to <=
Line intersect script added.