Corrected switch syntax.