Add simplte tree functions