Update pattern matching.