Optimized for iOS.