Added hypothesis scoring function