Adapted to new rackattack protocol 3