Variadic template function