CWS thread