Adding destructor method.