Updated to reflect metadata internal structure (this will fail on Windows)