@anutron you are right about `toInt`/ `parseInt` missing the radix. Will change to `toInt(10)`

I added this code here because `setRange()`is just run on initialize and this new code is related to `range`. If you think a separate method is more clean I will be happy to adapt and call it from initialize also.