Added `clear` function