Changed device output to an array