Implement more pattern matches.