Update scan_for_attachments and created scan_for_detachments.
Update scanning methods to log correctly. Start out with scanning.