Add metadata access function for public API.