Added docksEventHook