Upadate clean function.