Stable AE algorithm.