Added denoise algorithm.