Restructured as genetator with stored input