Changed export to only export visible columns.