Modified stop condition.