Finished generator, updates json and output.