Add an option to allow generation of a file