Generating three files instead of thirty