Add parent link, fix thread depth