Rewrote intersect to be a little faster and more general
Changes from deploying application