Pattern matching.