Added a device compatibility check.