Add patterns.