Imported a simple ticks implementation.