These arrays can be globals as well. No need to build them in the function.