Approximation scheme for log(1+exp(x)), improves numerical staibility.