Update switch.