Added debug code for futures.