Added debug method to display input and output every time transmit() is called