Added the destroy method.