Support max_steps="auto".