Asynchronous callback to get the result