Adding missing $template type