Added Clear functionality.