Fixed random deleteion of most of the divSwitcher code