Clean up metadata and stuff