Do not always automatically connect to the network
Set the global configuration value for offline mode
Code cleanup