I do not see any new functions called here, perhaps in fetch_attachments?