Store metadata in attributes

This is from Rusty Eliot. Is this the way to go?