Modified to sarch multiple dirs for attachments.