Added in some error handling for the API response