Not working version - modifying to add the custom's field handling on Glacier's inventory.