Min en Max changed to be minRange and maxRange