Added template variables to script