Add context to structure document