Wavelet cleanup