Fixed overly-specific template function.