Scrubbing function done, to be tested