Added option to save code only to a file.