Much better method of handling a table with Arrays.