Added status flag.
Added status to export csv file.