Added this to be able to download to CSV file without opening another window.