Template work for threads, and some on index.