Interim version that calculates the deviance but not correctly.