Attempt to fix cycle counting.