Man, the indexing of these two arrays are mind-torturing.