New functions, CustomTreeGenerator