range banding revisited

Tentative and temporary ranging solution intended to soon be swapped out with a robust library.
Could you add a new line after this line?