Fixed a few wrong arrays. Seems like it should be good now. Wow. What a mess.