Use map to join threads to save on local vars.