Added the clear functionality