Working on export to file option