Added IOS compatibility