Add methods to compute loglike and acc