Add reduce for attachments
Use new reduce for attachments
Fix filename format