Works with multiple, reversed, rotated patterns :)