Add interval class to simplify logic ahead of pagination code