Unify the syntax in the document module