Updated check for lower range to be allowed to be 0.