Fixing crash during transmission.
Cleaning some of the debug printouts.