Fixing deprecated metadata methods
Fixing all missing functions. Only not-found struct fields remain.