Use function for uart transmissions