Change to process events when the application is paused