Add min/max bounds for interval range.
Refactor interval implementation.