UART manipulation moved in class