Added 'clear' functionality