Fix a severe bug in AutoSwitch
Renamed CreateAutoSwitch() to CreateSmartSwitch()