First Version of the generation script