Updated for iOS 7.