Using Device object