Added AttemptRetransmission function