Added function to retrieve one device only