Minor change in output_result_for_step