Added missing threads variable name