The function now returns the wavelet estimation.