Change treeType option to accept a name instead