Better Tree.lookup interface