Add support for custom metadata entries. See sample/06-metadata.py