Refacoted Generator, splitted generation of up to three files into three generators.