Updated App Delegate.