`threshItems` should be changed to have integer keys instead of converting the IDs to strings all the time.