BUGFIX: Paths that were not included were not being pruned, so wrong direction and types were traversed.