Added support for iOS 7
sync