Added algo for scoring