Separated metadata func