Filled in all the functions for the UART driver.