Updated with the new iOS SDK