Wrote a new time tick generator