added StopCondition to output.