Support document inheritance.
Code quality.