Should pt be a reference so that no data it being copied around? (I am not sure how big of an object ptree is)