Refined the document model.