Modifying device to account for API not existing on older versions of th...

...e OS