Work on the pattern files