Adding comments to process_api_call method