Adding destruct function to test functionality.