Tick generator using interval.

Close #1166.
This seems a lot clearer.  Lemme read through this.