Added result clear function