Use mechanism for obtaining the upper limit value.
Merge pull request #149 from Dmitry-Me/getRidOfHardcoded100Value

Use mechanism for obtaining the upper limit value.