Added implementation for iOS