Updated with the top 3 matching algorithm