Added pattern update listener
Added warnings if there are pattern definitions with different names in a single pattern