More work on patterns