Added ESS calculation. (Slow!)