Added method of detecting undelivered packets so they may be resent.