Beginnings of PTree implementation.