TopoSort working, pRepo is global for pass 1 and 2