Stripped-down version of original ESAT code