Updated for_each to use the standard futures