max_delay = 20; delay = 0; spd = 0; acc = 0.01;