Building an array of item IDs so we can use it for multiprocessing