Add timeout for switch.