Experimenting with a case statement instead.