Some changes to pointers. Still does not work. I'll go to StackOverflow with this, I think.