Better naming of template variable.
Adding piecelog utility.
Adding missing depth information collection for head terms.