Migrate eventqueue to new main loop