Added removePatterns: method.