Function lastIndexAsync