Gotta love switch statements