Use Matt trick for estimating random effects.