Nice use of a case statement here!