I changed how events are handled, it isn't managed in a thread anymore