Refactor to separate the 4-bit transmit logic to its own process