Fixed a major bug in the timing for the interval period.