Updated to use the new iOS SDK