Refactor tick.