Proper check for num_steps.