Add support for scaling deltas so that deltas match detents.
cleaned up new cycle-counting logic.