I don't like using switch statements if the individual blocks span more than a line - could you either simplify the code or use an if block?