Got a first crack on filtering related nodes, the IN and OUT should be fine, need to cleanup the ALL management.