Added a few comments for variable and handler for failed curl requests.