Update the arrays