Added support for writing column headers before an export.