ndRules.replace('{{onDemandEnabled}}', '1');
                    onDemandRulesArr.push(cellularDefaultDict);
                    console.log('Pushing on cellular default dict');
                }
                if (autoconnect == 'none'){
                    onDemandRules = onDemandRules.replace('{{onDemandEnabled}}', '0');   
                    console.log('Removing onDemandEnabled');
                }

                if (onDemandRulesArr.length > 0){
                    onDemandRules = onDemandRules.re