Somehow I'm using pointers, I'm not sure how. It's better than trying to use global variables. Now I have things working.