Added a destroy method.