Added derivation of exponential weights