Completed port for iOS
removed verbose log statement