Put events into a separate thread