Fixed up logical tree stuff.