Changed device.name to device.model.