implemented certain checks related to multiple API calls. Kindly verify and let us know if we are moving in the right direction