Added some more logs on the initPatterns function.