Various pstree implementation