Acceleration and deceleration done right