Adding getDeviceTypes method.