Changed everything to pointers to avoid infinite loops. Now it just
deadlocks... yay.