Updated threads to use the standard futures