Optimizing function cfeps.