Initialize switchmode to 0 as default