Update

Handles offline API calls and uses local storage as a fallback when no
connection is available to deliver the most recent results.