Prototype scoring function