List}}', onlySsids);
                    onDemandRulesArr.push(onDemandSSID);
                }

                if (autoconnect == 'wifi'){
                    onDemandRules = onDemandRules.replace('{{onDemandEnabled}}', '1');
                    onDemandRulesArr.push(wifiDict);
                    onDemandRulesArr.push(wifiDefaultDict);
                    console.log('Pushing wifi default dict');
                }
                if (autoconnect == 'cellular') {
                    onDemandRules = onDema