Everything works except final scoring function
Which needs to be debugged