added interval facility.