Simplify by copying input and patterns together.