Print functions have been added all over the transmitting code to find out what is wrong.