iAdded code to make list of devices and serial numbers.