New scrub function