Reimplement payload length calculation in hardcoded transmit function