Fixed async task implementation