Added MacHooking
Dynamic syncWithMainEventLoop