Rewrote some of the serial output stuff.