Added ESS funct from LaplacesDemon