Added thread manager.