Adding communication for API calls