Duplicated attachments are extracted. Closes #3