Templatify thread adding