Moved ITEM_ID_MIN to globals