Tick generator using interval.

Close #1166.
Unfortunately you'll need a bunch of tests surrounding this call as well :/