Nested iteration would make more sense in this order.