Finally got metadata blocks working