Pattern generating works well