Resolved issues with and improved error handling
Made API retries an argument
Eliminated retries on Client Error responses
Added API retry delay