added interval support