Simplify hsSwitch example