Added switch prototype