Added clean function.