Please see sample model attached. This is a shipping scenario where we are shipping a number of items per voyage. The global table "MArrivalTable" shows a sample schedule of items we need to ship and all items have to be retained/released at the "MF Site" queue. Our model needs to be able to look at the schedule and only release items from the queue (on their ready dates) when the items in the voyage are in succession. If there's an item from another voyage in between, all of the items from the original voyage now have to wait until the last item in that voyage to be ready for them to be released one by one. The illustration I have provided shows when every item in the sample model should be released. Items in green mean that they leave as soon as they are created, items in red mean that they wait until the last module on that voyage for all of them to be released. Our input schedules are going to be made out of hundreds of items and voyages so we need to somehow make the model be able to determine this by itself. Is there any way to achieve this in the queue or any other place in the model?