More work on patterns.