Version with template