Match-recognize core.