Add clear functionality.