Replace the best_fit or order 1 by a simple lowpass filter at 1Hz