Trying to work around errors in MobileDevice