Erased displayAllDevices function