The mapping is now saved in a modifiable array instead of being hardcoded into a switch-case statement.