Added priority to EventDispatcher.