Use magic to figure out device.