Added UART overflow handling.