Support pattern matching.