Changed the results determination algorithm