Get rid of superfluous iteration.