Adaptation of Interval to the API paradigm