Rewrote and redesigned filter.  All functions work except for category function, which might require a triple join.