Added path compression but it does not work for subnodes...