Add clear function.