Adding in extra document metadata variables