Add variables to template