Added iOS 6.1 support