Implemented the global clear.