Update Switch.m