Replace deprecated 'futures'