Added a clear function.