Moved the thread amount control to config