Added clear functionality.