Continue adding destructor function