Decoupled Log likelihood calculation from model implementation.