Added logging on the document interface.