Started again, got it (kind of) working. Now just to figure out why it's
in an infinite loop...