Added in SubDAG filtering (as well as modified comparators).