Adding  switch