Attempt at doing iDevice-sensitive code.