Added support for iOS 7