Added data corruption function (for denoising)