Add getDevices for listing devices