Added a clear function