Added iOS implementation