Introduce pattern matching.