Code review and adding functions for interval truncation.