Simplified the dataTransmitter code