Made offline mode configurable