Added reset to switch