Production code for MATCH