Could use a match statement here.