Work on relationship generation - works now! (not totally tuned, but
works!)