Add clear method support.