Added 'clear' function