What does the variable name `wait_thr` mean? I can't guess. Can you give it a more explicit / clear name please?