Pass in ai of metadata