Added PDU writer functions