Make the API async