Corrected top 10 implementation