Changing the interval method.