Add helper functions for integer ranges.