QA: Simplify code joining threads