Simplifies AppDelegate.