Changed dmvnorm to further speed up