Added an export to csv option for results