Redid data structure to be a one dimensional array.