Cutoff and logarithm function works