Generator working so far. Need to review the iterative generation for better accuracy.