Started new method, lpf, for possible recursive function