Iterate over the arrays