Cycle counting now working.