Updated to check ios devices