Added iOS 7 support