Initial support for pattern matching.