pat: adding ability to clear.