Trying to implement the document models, but I am too tired.