Make an event queue and new thread