Added ability to generate a different type of file.