Tree validation uses udfs