Modified the way Paths are built by adding a query system so that Nodes can be filtered out easily.