Added the start of thread manager