Update patterns.