stableTempoFast code optimized