Add clear functionality