Improved achievement algorithm