Added random delay and packet dropping.