Added a predicate to node and did some minor tweaking in rtree