What do you think of using a case statement here?