Allow dynamic sizes for inventory scripts