Add clearOutput function