Maximum log-likelihood fitting