Match-recognize state management.