Updated to use IOSAppDelegate