Added iOS compatibility.