Implement methods in Devices.java