Added max for the max number of pockets, for use in the inventory.