Set patterns.