As suggested in my last reviews, we should make that a switch statement, so we can more easily handle that in the future, and we are in sync with other modules here.