Support offline mode