added setStageStatusFromResults