Better document version determination.