@alzhao @bruce is this the required switch code?