Through this combination the threading works now