Add ability to set range and throw exceptions when not enough range is set