Outlined scoring function