Swapped back to good algorithm for analysis.