Change how to get metadata