WIP
Fix generate_metadata for unclaimed.