Added ClearWindow() function