added some serial output stuff.