Adding support for offline/online syncing.