Add module_function for (and define) match_by_name method