added IntersectPipe and random other tweaks.