Added clear functionality