Now all probabilities are in log-space.