Adds context to attachments