Correct last patch and use outchar instead of PUTC to output single characters.