Avoid some pretty nasty switch mess.