Logging sent amount and setting num_bytes in ReceiveX