Small changes to event queue and its initialization in the Application class