Optional: could read the scale once outside of the switch and use it in all paths rather than reading it multiple times.