Use true and floor division
Expand amount of ranges
Make range amount a global constant