StopCriterion worked not quite right.