Rename functions in serial.c