Implemented own method to compute log-likelihoods