Update UART code