Implements the Substance Document Model