Move the 'varGroupPrefix' from variable to parameter, as variable was not passed through the template.