Clean up the structure