Work on Final Generation

Beginnings of a final algorithm.