Candidate for conversion to use a switch.