Internal match function as DSL.