DeviceType constructor added