Foreach needs two temp variables. This is not so bad.