Added template flag to Major