Update 'clear' functionality