Added additional logging, added footer to CSV emails.