Add metadataFor
Merge pull request #1286 from thomasboyt/metadataFor

Add metadataFor