As discussed, `if..elif` is potentially more efficient, but is probably OK here.