Edit to API calls