Updated for iOS7.