Support controlling threads from config