Added iCloud initialization code