Added automatic file generation.