Change SMRange to be half-open (exclusive end) instead of closed (inclusive)