Implement ticks.

Closes #177.