Use the output list of keys as the iterator to ensure correct value ordering
Style