Adding support for [linked] document.