Initial work, allowing user to specify which fields they want to export (unfinished).