Changed the async to Michaels code