Second commit with code changes in AppDelegate.m