Issue #6: Improved error handling for requests.
Issue #6: Requests code simplification.