Add logarithm to avoid underflow.