Added support for iOS 5 for legacy reasons.