Added page-vars to message rendering code.