Added limit on file generation.