Implement adding attachments.