Added iOS 6 Compatibility