Update completion code with iOS 7