Implement clear functionality