I have an issue with the auto-generation of patterns. Sometimes it generates the same pattern twice, which kinda defeats the purpose. In my implementation, it happens more often than, what might be good. 