Added compensategfp()