Changes to AppDelegate.