Change to nonblocking I/O, correct output from mm to cm