Added more to the general structure of transmit.c