Update array sizes during update loop