Move device info print to seperate function