Don't set changed flag at the beginning of each iteration.