Updating template variables in the code