Added the whole generation process, and generation historization in
the Environment singleton.