Changed algo
Changed algo