Added iOS compatibility