Fixed #7: I was copying the pointer rather than the contents (among other problems)