Allow passing param to tree