TreeLengthLogger added but not tested