Added protected transmit function